package com;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableTransactionManagement //事物管理
@EnableAsync //开启异步线程
@Slf4j
@ComponentScan(basePackages = {
    "com.mp3.conf","com.mp3.demo.service","com.mp3.demo.controller"})
public class DemoApplication {

  public static void main(String[] args) {
    SpringApplication.run(DemoApplication.class, args);
    log.info("PortalApplication is success!");
    System.err.println("sample started. http://localhost:8080");
  }
}
